package cur.channel.client;

import cur.channel.client.netty.NettyClientUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/client")
public class ClientController {

    @Autowired
    private NettyClientUtil nettyClient;

    @GetMapping("/send")
    public Object send(){

        nettyClient.sendRandom("aaa-------wujian:吴剑");
        Map<String,Object> resMap = new HashMap<>();
        resMap.put("aa", "bbbbbbbbbbbb");
        return resMap;
    }
//
//    @GetMapping("/doTest22")
//    public Object doTest22(){
//        Map<String,Object> resMap = new HashMap<>();
//        LogUtil.info(getClass(),"doTest22: "+RedisUtil.getTest());
//        resMap.put("aa", BeanUtil.init(Test2Service.class).testService());
//        return resMap;
//    }


}
